complementary function of ode